package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;

import java.util.List;

public interface CommentApi {
    Integer save(Comment comment);

    List<Comment> commentList(String movementId, CommentType comment, int page, int pagesize);

    Boolean like(String id, Long userId, CommentType like);

    Integer delete(Comment comment);

    List<Comment> likes(Long userId, Integer page, Integer pagesize, CommentType commentType);

    Boolean hasContent(String commentId, Long userId);

    Integer saveCL(Comment comment);

    Integer deleteCL(Comment comment);
}
